package com.bytedance.article.common.launchcrash;

import android.content.Context;

public final class f {
    private static d a;
    private static b b;
    private static boolean c;

    static {
        f.a = null;
        f.b = null;
    }

    public static void a(Context arg4, com.bytedance.article.common.launchcrash.a.a$a arg5) {
        int v0 = 0;
        if(arg4 != null) {
            Context v2 = arg4.getApplicationContext();
            if(v2 != null && !f.c) {
                v0 = 1;
            }

            if(v0 == 0) {
                return;
            }

            f.c = true;
            f.b = new b();
            com.bytedance.article.common.launchcrash.a v0_1 = com.bytedance.article.common.launchcrash.a.a(v2, arg5);
            f.a = ((d)v0_1);
            ((d)v0_1).a(f.b);
            f.a.a();
        }
    }
}

